<h1>New burndown</h1>

<%= error_messages_for :burndown %>

<% form_for(@burndown) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :description %>
  </p>
  
  <%= render  :partial => "project_milestone_selector", 
              :locals => {  :form => f, 
                            :projects => @projects, 
                            :milestones => @milestones} %>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', burndowns_path %>
